package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dto.OrderSearchDto;
import com.example.dto.ReturnApplyDto;
import com.example.entity.OrderReturnApply;
import com.example.param.OrderSearchParams;
import com.example.vo.Result;

import java.util.List;

/**
* @author circle48
* @description 针对表【order_return_apply(订单退货申请)】的数据库操作Service
* @createDate 2024-06-09 15:37:34
*/
public interface OrderReturnApplyService extends IService<OrderReturnApply> {
    Result<List<ReturnApplyDto>> getReturnList();

    Result<List<ReturnApplyDto>> searchReturn(OrderSearchDto orderSearchDto);

    Result<ReturnApplyDto> getReturnDetail(Long id);

    Result createReturnApply(OrderReturnApply orderReturnApply);

    Result getMyRefundOrders(String username, OrderSearchParams orderSearchParams);

    Result updateReturnApplyDeliverySn(Long id, String deliverySn);

    Result<List<ReturnApplyDto>> getReturnListByStoreId(Long storeId);

    Result<List<ReturnApplyDto>> searchReturnByStoreId(Long storeId, OrderSearchDto orderSearchDto);

    boolean updateOrderReturn(Long id, String handleNote, Integer status);
}
